package com.xfcy.blog.controller.web;

import com.xfcy.blog.annotation.BusinessLogger;
import com.xfcy.blog.common.R;
import com.xfcy.blog.service.TagsService;
import com.xfcy.blog.vo.TagVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 前端控制器
 * 博客标签页
 * @author 晓风残月Lx
 * @date 2023/4/9 20:32
 */
@RestController
@RequestMapping("/web/tags")
@Api(tags = "标签接口")
public class WebTagsController {

    @Resource
    private TagsService tagsService;

    @BusinessLogger(value = "标签模块-标签列表",type = "查询",desc = "标签列表")
    @ApiOperation(value = "标签模块-标签列表", httpMethod = "GET", response = R.class, notes = "标签列表")
    @GetMapping(value = "/list")
    public R tagList() {
        return tagsService.tagList();
    }




}
